package cn.hyy.hrm.client;


import cn.hyy.basic.util.AjaxResult;
import cn.hyy.hrm.client.impl.SMSClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
@FeignClient(value = "SMS-SERVICE",path = "/send",fallback = SMSClientImpl.class)
public interface SMSClient {
    /**
     * 发送注册短信验证码
     * @param phoneNum 手机号码
     * @param code 验证码
     * @return
     */
    @GetMapping("/regSMSCode")
    AjaxResult sendRegSMSCode(@RequestParam("phoneNum") String phoneNum, @RequestParam("code") String code);
}
